x=1
while x <=9 :
  y=1
  while y <=x:
    print(x*y,end=" ")
    y+=1
  x+=1
  print()
